<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>UploadiFive Test</title>
	<script src="jquery2.js" type="text/javascript"></script>
	<script src="jquery.uploadify.min.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="uploadify.css">
	<style type="text/css">
		body {
			font: 13px Arial, Helvetica, Sans-serif;
		}

	</style>
</head>

<body>
<h1>Uploadify Demo</h1>
<form>
	<div id="queue"></div>
	<input id="file_upload" name="file_upload" type="file" multiple="true">
</form>

<script type="text/javascript">
	<?php $timestamp = time();?>
	$(function() {
		$('#file_upload').uploadify({

			'swf'      : 'uploadify.swf',
			'uploader' : 'uploadify.php',
			'width'         : '120',

			'fileTypeExts': '*.gif; *.jpg; *.png',
			'buttonText': '上传图片',

			'removeCompleted' : false,

			//上传成功后执行
			'onUploadSuccess': function (file, data, response) {
				$('#' + file.id).find('.data').html(' 上传完毕');
			}


		});
	});
</script>
</body>
</html>

<!---->
<!--//上传照片-->
<!--$('#file_upload').uploadify({-->
<!---->
<!--'swf'      : uploadify,-->
<!--'uploader' : uploadifyUrl,-->
<!--'width'         : '120',-->
<!--//'fileTypeExts'      : '*.jpg; *.png; *.gif;',-->
<!--'buttonText': '上传渠道包',-->
<!--'removeCompleted' : '1',-->
<!--'file_post_name' : 'coverImg',-->
<!---->
<!--//上传成功后执行-->
<!--'onUploadSuccess' : function(file, data, response) { //每次成功上传后执行的回调函数，从服务端返回数据到前端-->
<!--var data = $.parseJSON(data);-->
<!--if(data.res==0){-->
<!--$('#image').val(data.info);-->
<!--}else{-->
<!--standardTips(data.message,2);-->
<!--}-->
<!---->
<!--}-->
<!---->
<!--});-->

